package it.tava.andbudget;

import it.tava.andbudget.data.DataManager;
import it.tava.andbudget.data.XmlManager;

import org.xmlpull.v1.XmlPullParser;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class AndBudget extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
		TextView textView = new TextView(this);
		
		XmlPullParser parser = getResources().getXml(R.xml.andbudget);
		DataManager data = new XmlManager(parser);
		//data.save();
		
		String string;
		try {
			string = "";
		}
		catch(Exception e) {
			string = "";
			StackTraceElement stack [] = e.getStackTrace();
			for (StackTraceElement stackTraceElement : stack) {
				string += stackTraceElement.toString() + "\n";
			}
		}
		textView.setText(string);
		this.setContentView(textView);
    }
}